package net.play5d.tool.swf_parse {
    import flash.text.TextField;

    public class Loger {

        private static var _txt:TextField;

        public function Loger():void {}

        public static function init(txt:TextField):void {
            _txt = txt;
        }

        public static function log(value:Object):void {
            if (value == null) {
                return;
            }
            var text:String = String(value);
            trace(text);

            _txt.appendText(text + "\n");
            _txt.scrollV = _txt.maxScrollV;
        }
    }
}